Options +FollowSymLinks -MultiViews
RewriteEngine on

RewriteRule ^user/([^/]+)/?$					user-profile.php?user=$1			[NC,QSA]
RewriteRule ^user/([^/]+)/recent-tracks/?$			user-recent-tracks.php?user=$1			[NC,QSA]
RewriteRule ^user/([^/]+)/stats/?$				user-stats.php?user=$1				[NC,QSA]
RewriteRule ^user/([^/]+)/station/?$				user-station.php?user=$1			[NC,QSA]
RewriteRule ^user/([^/]+)/library/?$				user-library.php?user=$1			[NC,QSA]
RewriteRule ^user/([^/]+)/library/music/?$			user-library.php?user=$1&section=music		[NC,QSA]
RewriteRule ^user/([^/]+)/library/scrobbles/?$			user-library.php?user=$1&section=scrobbles	[NC,QSA]
RewriteRule ^user/([^/]+)/library/loved/?$			user-library.php?user=$1&section=loved		[NC,QSA]
RewriteRule ^user/([^/]+)/library/banned/?$			user-library.php?user=$1&section=banned		[NC,QSA]
RewriteRule ^user/([^/]+)/library/tags/?$			user-library.php?user=$1&section=tags		[NC,QSA]
RewriteRule ^user/([^/]+)/library/tags/([^/]+)/?$		user-library.php?user=$1&section=tags&tag=$2	[NC,QSA]
RewriteRule ^user/([^/]+)/library/music/([^/]+)/?$		user-library.php?user=$1&section=music&artist=$2	[NC,QSA]
RewriteRule ^user/([^/]+)/library/music/([^/]+)/([^/]+)/?$	user-library.php?user=$1&section=music&artist=$2&album=$3	[NC,QSA]
RewriteRule ^user/([^/]+)/library/music/([^/]+)/_/([^/]+)/?$	user-library.php?user=$1&section=music&artist=$2&track=$3	[NC,QSA]
RewriteRule ^artist/([^/]+)/track/([^/]+)/edit/?$		track-add.php?artist=$1&track=$2		[NC,QSA]
RewriteRule ^artist/([^/]+)/track/([^/]+)/tag/?$		track-tag.php?artist=$1&track=$2		[NC,QSA]
RewriteRule ^artist/([^/]+)/track/([^/]+)/?$			track.php?artist=$1&track=$2			[NC,QSA]
RewriteRule ^artist/([^/]+)/album/([^/]+)/track/add/?$		track-add.php?artist=$1&album=$2		[NC,QSA]
RewriteRule ^artist/([^/]+)/album/([^/]+)/track/([^/]+)/edit/?$	track-add.php?artist=$1&album=$2&track=$3	[NC,QSA]
RewriteRule ^artist/([^/]+)/album/([^/]+)/track/([^/]+)/tag/?$	track-tag.php?artist=$1&album=$2&track=$3	[NC,QSA]
RewriteRule ^artist/([^/]+)/album/([^/]+)/track/([^/]+)/?$	track.php?artist=$1&album=$2&track=$3		[NC,QSA]
RewriteRule ^artist/([^/]+)/album/add/?$			album-add.php?artist=$1				[NC,QSA]
RewriteRule ^artist/([^/]+)/album/([^/]+)/edit/?$		album-add.php?artist=$1&album=$2		[NC,QSA]
RewriteRule ^artist/([^/]+)/album/([^/]+)/?$			album.php?artist=$1&album=$2 			[NC,QSA]
RewriteRule ^artist/([^/]+)/?$					artist.php?artist=$1				[NC,QSA]
RewriteRule ^artist/([^/]+)/manage/?$				artist-manage.php?artist=$1			[NC,QSA]
RewriteRule ^artist/([^/]+)/tag/?$				artist-tag.php?artist=$1			[NC,QSA]
RewriteRule ^country/([^/]+)/?$					location.php?country=$1				[NC,QSA]
RewriteRule ^logout 						login.php?action=logout				[NC,QSA]
RewriteRule ^listen 						listen.php					[NC,QSA]
RewriteRule ^music 						popular.php					[NC,QSA]
RewriteRule ^tag/([^/]+)/?$					tag.php?tag=$1					[NC,QSA]
